<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Hello extends CI_Controller{
	public function World($num){
		for($i=0;$i<$num;$i++){
			echo "hello world<br/>";
		}
	}
	public function index(){
		$this->load->model('Blog_model');
		$articles= $this->Blog_model->get_last_ten_entries();
		$data = array(
		    'title' => 'My Title',
		    'articles' => $articles,
		    'message' => 'My Message');
		$this->load->view('blogview', $data);
	}
}	
?>